<template>
    <document-tab :tab-list="myTabList">
        <template slot-scope="{item}">
            <tab-content :params="item.params" :appFun="item.appFun" :formatter="item.formatter"></tab-content>
        </template>
    </document-tab>
</template>
<script>
    import TabContent from "./TabContent";
    import DocumentTab from "@/components/Common/DocumentTab";

    export default {
        components: {DocumentTab, TabContent},
        data(){
            return{
                myTabList:[
                {
                    label: "我的待办",
                    name: "daiban",
                    params: {category: 'duty'},
                    badgeNum: 0,
                    formatter: (data) => {
                        return data
                    },
                },
                {
                    label: "我的已办",
                    name: "yiban",
                    params: { category: 'relation'},
                    badgeNum: 0,
                    formatter: (data) => {
                        return data
                    }
                },
                {
                    label: "我的待阅",
                    name: "daiyue",
                    params: { category: 'daiyue'},
                    badgeNum: 0,
                    formatter: (data) => {
                        return data
                    },
                },
                {
                    label: "我的申请",
                    name: "faqi",
                    params: {category: 'owner'},
                    badgeNum: 0,
                    formatter: (data) => {
                        return data
                    }
                },
            ]
            }
        },
        created() {
        }
    };
</script>
